public class JavaVMStackSOF2 {
    private static int stackLength = 0;

    public static void test() {
        long unused1, unused2, unused3, unused4, unused5;
        stackLength++;
        test();
        unused1 = unused2 = unused3 = unused4 = unused5 = 0;
    }

    public static void main(String[] args) {
        try {
            test();
        } catch (Error e) {
            System.out.println("stack length: " + stackLength);
            throw e;
        }
    }
}
